﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FAQAdd.ascx.cs" Inherits="Admin_FAQ_FAQAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls"
TagPrefix="FTB" %>

<div>
     <uc1:Alert ID="MessAlert1" runat="server" />
</div>
<div>
    <b><asp:Label ID="lblLanguage" Width ="80px" Text ="Ngôn ngữ" CssClass="text" runat ="server"   ></asp:Label></b>
    <asp:DropDownList ID="ddlLanguage" runat="server" CssClass="boxnormal" AutoPostBack="true"  OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
    </asp:DropDownList></div>
<div>
   <asp:Label ID="lblTitle" runat="server"  Width ="80px"  CssClass="text" Text ="Câu hỏi"></asp:Label>
   <asp:TextBox ID="txtTitle" runat="server" CssClass="boxlonger" Width="500px"   MaxLength="150" ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
</div>
<div>
    <asp:Label ID="lblCategory"  Width ="80px"  runat="server" CssClass="text" Text ="Danh mục"></asp:Label>
    <asp:DropDownList ID="ddlCategory" CssClass="boxlong"  runat="server">
    </asp:DropDownList>
</div>

<div style="padding:10px 0px 5px 0px ">
      <b><asp:Label ID="lblContent" Width ="85px" runat="server" CssClass="text" Text="Trả lời" ></asp:Label></b>
</div>
<div>
 <uc2:TextBox id="FTBContent" runat="server"></uc2:TextBox>
</div>

<div  style="padding:5px 0px 5px 0px ">
    
     <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true" Text ="Kích hoạt" />
</div>
<div style="padding: 20px 20px 0px 0px ">
    <asp:Button ID ="btnSave" runat="server" Text="Lưu" Width ="80px"   
        ValidationGroup="Input" OnClick="btnSave_Click1" style="height: 26px" /> &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width ="80px"    OnClick="btnCancel_Click"  />   
    </div>


<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true"   ControlToValidate="txtTitle" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>


<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />